<?php

namespace App\Models\Community;


use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use App\Models\User;
class Status extends Model
{
    use HasFactory;
    const StatusSuccess = 1;
    const StatusFalse = 0;
    const Status = [
        self::StatusSuccess => '正常',
        self::StatusFalse => '删除',
    ];
    protected $fillable = ['content','status'];
    public function user()
    {
        return $this->belongsTo(User::class);
    }
}
